from django.db import models

# Create your models here.
class TradingPairs(models.Model):
    id = models.BigAutoField(primary_key=True, verbose_name="编号")
    trading_pair = models.CharField(max_length=255, verbose_name="交易对")
    data_beings = models.DateTimeField(verbose_name="数据开始")
    data_end = models.DateTimeField(verbose_name="数据结束")
    cycle = models.IntegerField(default=1, verbose_name="周期")
    is_add_data = models.BooleanField(default=True, verbose_name="是否添加数据")
    is_trade = models.BooleanField(default=True, verbose_name="可交易")
    status = models.IntegerField(default=0, verbose_name="状态")

    class Meta:
        db_table = 'trading_pairs'
        verbose_name = "交易对"
        verbose_name_plural = verbose_name